package com.ant.myagile.backlog

import com.ant.myagile.Team
import com.ant.myagile.MeetingVideo

class Sprint {
	String sprintName
	String status
	Date dateStart
	Date dateEnd
	

	static hasMany = [issues: Issue, retrospectiveResult : RetrospectiveResult, meetingVideos : MeetingVideo]
	static belongsTo = [team : Team]

	@Override
	public String toString() {
		return sprintName
	}

	static constraints = {
		sprintName(nullable:false, blank:false)
	}
	
	static mapping = {
		version false
	}
}
